import React, { Component } from 'react';
import { router } from 'umi';
import ProDetail from '@/pages/components/Problem/ProblemPage/ProDetail';

class Proble extends Component {
  onModifyData = data => {
    router.push(`/socialinsurancemanagement/insrecruition/detail?addDetId=${data.busiId}`);
  };

  onViewDetails = data => {
    router.push(`/socialinsurancemanagement/insrecruition/detail?addDetId=${data.busiId}`);
  };

  render() {
    return <ProDetail onModifyData={this.onModifyData} onViewDetails={this.onViewDetails} />;
  }
}

export default Proble;
